package com.yilin.platform.service.message;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.platform.base_core.application.ReturnData;
import com.yilin.platform.base_core.commons.annotation.Explain;
import com.yilin.platform.base_core.tools.SMSUtil;
import com.yilin.platform.entity.message.SmsRecord;

import java.util.Map;

public interface ISmsService extends IService<SmsRecord> {

    void deleteByDate(String startDate, String endDate);

    ReturnData<Map<String, Object>> sendCodeMessage(String platId, String productCode, String phone, @Explain("验证码类型") SMSUtil.MsgType msgType);

    void saveSendMessage(String platId, String productCode, String phone, String msg, String confirmNo, SMSUtil.MsgType msgType, String code);
}
